home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / IEditor / Expanders / BackFill.desc next >
Encoding:
Text File  |  1997-06-17  |  706 b   |  35 lines

  1. ##RENDPRI
  2. -10
  3. ##SUPPORT
  4.  
  5. void BackFill( struct Window *Wnd )
  6. {
  7.     struct DrawInfo *dri;
  8.  
  9.     if( dri = GetScreenDrawInfo( Scr )) {
  10.         SetAPen( Wnd->RPort, dri->dri_Pens[ SHINEPEN ]);
  11.         SetAfPt( Wnd->RPort, &Pattern[0], 1 );
  12.         RectFill( Wnd->RPort, Wnd->BorderLeft, Wnd->BorderTop,
  13.                   Wnd->Width - Wnd->BorderRight - 1,
  14.                   Wnd->Height - Wnd->BorderBottom - 1 );
  15.         SetAfPt( Wnd->RPort, NULL, 0 );
  16.         FreeScreenDrawInfo( Scr, dri );
  17.     }
  18. }
  19.  
  20. ##INCLUDE
  21. #include <graphics/gfxmacros.h>
  22.  
  23.  
  24. ##HEADER
  25. extern void BackFill( struct Window * );
  26.  
  27. ##GLOBAL
  28. UWORD                   Pattern[ 2 ] = { 0xAAAA, 0x5555 };
  29.  
  30. ##RENDER
  31.  
  32.         BackFill( %wWnd );
  33.  
  34. ##end
  35.